xsm: clean up unneeded current references
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Fri, 4 Oct 2013 10:52:56 +0000 (12:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Oct 2013 10:52:56 +0000 (12:52 +0200)
commitd4fede3b1248c034901c0e3e901d7400d8dbbed1
tree7702212b97971db355bd5b149013c33b3d24cdc1
parent65ba631bcb62c79eb33ebfde8a0471fd012c37a8
xsm: clean up unneeded current references

Some XSM hooks in dummy.h used current->domain when this was also passed
as a parameter; use the parameter in these cases. There are two hooks
where this does not apply and which are not immediately obvious:
xsm_set_target's parameters are the device model and HVM domains, and
xsm_mem_sharing_op's first parameter is the source of the shared page,
not the domain making the hypercall.

Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
xen/include/xsm/dummy.h